export class User {//表头
  id: number;
  name: string;
  sex: string;
  password: string;
  tel: string;
  constructor(id, name, sex, password, tel) {//构造实体
    this.id = id;
    this.name = name;
    this.sex = sex;
    this.password = password;
    this.tel = tel;
  }
  toString() {
    return this.id + ' ' + this.name + ' ' + this.sex + ' ' + this.password + ' ' + this.tel + '\n';
  }

  getPassword() {
    return this.password;
  }
  getId(){
    return this.id
  }
  getSex(){
    return this.sex
  }
  getName(){
    return this.name
  }
  getTel(){
    return this.tel
  }
}
